<?xml version="1.0" encoding="UTF-8"?>

<!DOCTYPE hibernate-mapping PUBLIC
    "-//Hibernate/Hibernate Mapping DTD 3.0//EN"
    "http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd">

<hibernate-mapping>
    <class name="cn.firstsoft.modules.portlet.domain.PortletNewSelect" table="portlet_new_select">
      <id name="id" type="integer">
            <column name="id" />
            <generator class="native" >
				         <param name="sequence">PORTLET_NEW_SELECT_ID_SEQ</param>
            </generator>
        </id>
        <property name="name" type="string">
               <column name="name" length="200" />
        </property>
        <property name="code" type="string">
               <column name="code" length="100" />
        </property>
        <property name="postionY" type="integer">
               <column name="postion_y" />
        </property>
        <property name="postionX" type="integer">
               <column name="postion_x"/>
        </property>
        <many-to-one name="portletNew" class="cn.firstsoft.modules.portlet.domain.PortletNew" fetch="select" >
            <column name="portlet_new_id" />
        </many-to-one>
        <many-to-one name="page" class="cn.firstsoft.modules.portal.domain.Page" fetch="select">
            <column name="page_id" />
        </many-to-one>
    </class>
</hibernate-mapping>
